package com.sai.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sai.demo.entity.SaiDemo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 测试demo
 * @Version: V1.0
 */
public interface SaiDemoMapper extends BaseMapper<SaiDemo> {

	public List<SaiDemo> getDemoByName(@Param("name") String name);
	
	/**
	 * 查询列表数据 直接传数据权限的sql进行数据过滤
	 * @param page
	 * @param permissionSql
	 * @return
	 */
	public IPage<SaiDemo> queryListWithPermission(Page<SaiDemo> page, @Param("permissionSql") String permissionSql);

}
